<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>

<form action="<?php echo url_for('centro/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="POST" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="PUT" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields() ?>
          &nbsp;<a href="<?php echo url_for('centro/index') ?>">Cancel</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'centro/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['nombre']->renderLabel() ?></th>
        <td>
          <?php echo $form['nombre']->renderError() ?>
          <?php echo $form['nombre'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['url']->renderLabel() ?></th>
        <td>
          <?php echo $form['url']->renderError() ?>
          <?php echo $form['url'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['direccion']->renderLabel() ?></th>
        <td>
          <?php echo $form['direccion']->renderError() ?>
          <?php echo $form['direccion'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ciudad']->renderLabel() ?></th>
        <td>
          <?php echo $form['ciudad']->renderError() ?>
          <?php echo $form['ciudad'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cp']->renderLabel() ?></th>
        <td>
          <?php echo $form['cp']->renderError() ?>
          <?php echo $form['cp'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['provincia']->renderLabel() ?></th>
        <td>
          <?php echo $form['provincia']->renderError() ?>
          <?php echo $form['provincia'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['tipo_centro']->renderLabel() ?></th>
        <td>
          <?php echo $form['tipo_centro']->renderError() ?>
          <?php echo $form['tipo_centro'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['tipo_centro_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['tipo_centro_id']->renderError() ?>
          <?php echo $form['tipo_centro_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['centro_estudio_list']->renderLabel() ?></th>
        <td>
          <?php echo $form['centro_estudio_list']->renderError() ?>
          <?php echo $form['centro_estudio_list'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
